﻿<catel:DataWindow x:Class="SoundSampleReceiver.Views.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
				  xmlns:catel="http://catel.codeplex.com"
                  ShowInTaskbar="True" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="Manual" Height="164.209" Width="398.612">
    
    <!-- Resources -->
    <catel:DataWindow.Resources>
    </catel:DataWindow.Resources>
    
    <!-- Content -->
     <catel:StackGrid x:Name="LayoutRoot">
		<catel:StackGrid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
		</catel:StackGrid.RowDefinitions>
        <catel:StackGrid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="*" />
        </catel:StackGrid.ColumnDefinitions>

        <Label Content="端口号：" />
        <TextBox Text="{Binding Port}" />

        <Label Content="接收到数据包：" />
        <TextBox Text="{Binding PacketsReceived}" />

        <Label Content="{Binding ErrorMessage}" Grid.ColumnSpan="2" />
        <!--<Label Content="Here goes your real content" />-->
        <Grid Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" Content="启动" Command="{Binding Start}" />
            <Button Grid.Column="1" Content="停止" Command="{Binding Stop}" />
        </Grid>
    </catel:StackGrid>
</catel:DataWindow>
